package service.impl;

import dao.ZzMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Zz;
import service.ZzService;

import java.util.List;

/**
 * 症状表业务逻辑实现类
 */
@Service
public class ZzServiceImpl implements ZzService {
    @Autowired
    private ZzMapper zzMapper;

    @Override
    public Zz findZzById(Integer id) {
        return zzMapper.findZzById(id);
    }

    @Override
    public List<Zz> findAllZz() {
        return zzMapper.findAllZz();
    }

    @Override
    public Zz findZzByName(String name) {
        return zzMapper.findZzByName(name);
    }

    @Override
    public List<Zz> searchZz(String keyword) {
        return zzMapper.searchZz(keyword);
    }

    @Override
    public int addZz(Zz zz) {
        return zzMapper.addZz(zz);
    }

    @Override
    public int updateZz(Zz zz) {
        return zzMapper.updateZz(zz);
    }

    @Override
    public int deleteZz(Integer id) {
        return zzMapper.deleteZz(id);
    }
}